import os

imagePath = './image/'

def checkDirExist(dir):
    if os.path.exists(dir):
        print(dir,'exist')
    else:
        os.mkdir(dir)
        print(dir,'is not exist, create dir')

if __name__ == "__main__":
    checkDirExist('./image')